﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MySpace.Data;

/// <summary>
///WishingWallTable 的摘要说明
/// </summary>
namespace DataBaseTable
{
    public class WishingWallTable : DBTable
    {
        private const string tableName = "WishingWall";
        public WishingWallTable()
            : base(GetHandler.Init(), tableName)
        {
            this.GetRow();
            //没有参数重载
        }
        public WishingWallTable(int id)
            : base(GetHandler.Init(), tableName)
        {
            this.Filter = "id=?";
            this.AddParameter("id", id);
            this.GetRow();
            //有参数重载
        }
        /// <summary>
        /// ID
        /// </summary>
        public int ID
        {
            get
            {
                try { return (int)this.DataRow["id"]; }
                catch { return 0; }
            }
        }

        /// <summary>
        /// 姓名
        /// </summary>
        public string qname
        {
            get
            {
                try { return (string)this.DataRow["qname"]; }
                catch { return string.Empty; }
            }
            set
            {
                this.DataRow["qname"] = value;
            }
        }
        /// <summary>
        /// 对谁说
        /// </summary>
        public string qtname
        {
            get
            {
                try { return (string)this.DataRow["qtname"]; }
                catch { return string.Empty; }
            }
            set
            {
                this.DataRow["qtname"] = value;
            }
        }
        /// <summary>
        /// qq
        /// </summary>
        public string qqq
        {
            get
            {
                try { return (string)this.DataRow["qqq"]; }
                catch { return string.Empty; }
            }
            set
            {
                this.DataRow["qqq"] = value;
            }
        }
        /// <summary>
        /// 时间
        /// </summary>
        public DateTime qdate
        {
            get
            {
                try { return (DateTime)this.DataRow["qdate"]; }
                catch { return DateTime.Now; }
            }
        }
        /// <summary>
        /// 来源ＩＰ
        /// </summary>
        public string qip
        {
            get
            {
                try { return (string)this.DataRow["qip"]; }
                catch { return string.Empty; }
            }
            set
            {
                this.DataRow["qip"] = value;
            }
        }
        /// <summary>
        /// 内容
        /// </summary>
        public string qgame
        {
            get
            {
                try { return (string)this.DataRow["qgame"]; }
                catch { return string.Empty; }
            }
            set
            {
                this.DataRow["qgame"] = value;
            }
        }
        /// <summary>
        /// 人气
        /// </summary>
        public int qhits
        {
            get
            {
                try { return (int)this.DataRow["qhits"]; }
                catch { return 0; }
            }
            set
            {
                this.DataRow["qhits"] = value;
            }
        }
        /// <summary>
        /// 恋爱,学业,健康,家庭,事业,将来,财富,生活,友谊,其他
        /// </summary>
        public string qlei
        {
            get
            {
                try { return (string)this.DataRow["qlei"]; }
                catch { return string.Empty; }
            }
            set
            {
                this.DataRow["qlei"] = value;
            }
        }
        /// <summary>
        /// 是否已经审核１审核 ０ 为不审核
        /// </summary>
        public int qshenhe
        {
            get
            {
                try { return (int)this.DataRow["qshenhe"]; }
                catch { return 0; }
            }
            set
            {
                this.DataRow["qshenhe"] = value;
            }
        }
        /// <summary>
        /// 专题ID
        /// </summary>
        public int ztID
        {
            get
            {
                try { return (int)this.DataRow["ztID"]; }
                catch { return 0; }
            }
            set
            {
                this.DataRow["ztID"] = value;
            }
        }

        /// <summary>
        /// 来源
        /// </summary>
        public string userAgen
        {
            get
            {
                try { return (string)this.DataRow["userAgen"]; }
                catch { return string.Empty; }
            }
            set
            {
                this.DataRow["userAgen"] = value;
            }
        }
    }
}